﻿using System;
using System.Collections.Generic;

namespace WeiXinSDK.DataModel
{
    public class UserInfo : ResultMsg
    {
        private int _subscribe = 0;

        /// <summary>
        /// 用户是否订阅该公众号标识，值为0时，代表此用户没有关注该公众号，拉取不到其余信息。 
        /// </summary>
        public int subscribe
        {
            get { return _subscribe; }
            set { _subscribe = value; }
        }

        private string _openId = "";

        /// <summary>
        /// 用户的标识，对当前公众号唯一 
        /// </summary>
        public string openid
        {
            get { return _openId; }
            set { _openId = value; }
        }

        private string _nickname = "";

        /// <summary>
        /// 用户的昵称
        /// </summary>
        public string nickname
        {
            get { return _nickname; }
            set { _nickname = value; }
        }

        private int _sex;
        /// <summary>
        /// 用户的性别，值为1时是男性，值为2时是女性，值为0时是未知 
        /// </summary>
        public int Sex
        {
            get { return _sex; }
            set { _sex = value; }
        }

        private string _language = "";
        /// <summary>
        /// 用户的语言，简体中文为zh_CN 
        /// </summary>
        public string language
        {
            get { return _language; }
            set { _language = value; }
        }

        private string _city = "";
        /// <summary>
        /// 用户所在城市
        /// </summary>
        public string city
        {
            get { return _city; }
            set { _city = value; }
        }

        private string _province = "";
        /// <summary>
        /// 用户所在省份
        /// </summary>
        public string province
        {
            get { return _province; }
            set { _province = value; }
        }

        private string _country = "";
        /// <summary>
        /// 用户所在国家
        /// </summary>
        public string country
        {
            get { return _country; }
            set { _country = value; }
        }

        private string _headimgurl = "";
        /// <summary>
        /// 用户头像，最后一个数值代表正方形头像大小（有0、46、64、96、132数值可选，0代表640*640正方形头像），用户没有头像时该项为空 
        /// </summary>
        public string headimgurl
        {
            get { return _headimgurl; }
            set { _headimgurl = value; }
        }

        private int _subscribe_time;
        /// <summary>
        /// 用户关注时间，为时间戳。如果用户曾多次关注，则取最后关注时间 
        /// </summary>
        public int subscribe_time
        {
            get { return _subscribe_time; }
            set { _subscribe_time = value; }
        }

        private string _unionid = "";
        /// <summary>
        /// 只有在用户将公众号绑定到微信开放平台帐号后，才会出现该字段
        /// </summary>
        public string unionid
        {
            get { return _unionid; }
            set { _unionid = value; }
        }
    }
}
